package org.call.hi;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/*

@RefreshScope
@RestController
public class HiController {

	 @Autowired
	    HelloService helloService;
	    @RequestMapping(value = "/hi/{name}")
	    public String hi(@PathVariable("name") String name){
	        //return helloService.hiService(name);
	    	return helloService.hiService22(name);
	    }
	    
	    /*
	    public String index(@PathVariable("name") String name) {
	        return HelloRemote.hello(name);
	    }
	    */
	    /*
	    @Autowired
	    private IServerHi serviceBClient;
	    
	    @RequestMapping(value = "/hihi")
	    public String hihi(){
	        return serviceBClient.printHello();
	    }
}

*/
